package com.yjx.test.dozer.entity;

import org.dozer.Mapping;

import java.io.Serializable;
import java.time.LocalDate;
import java.util.Objects;

/******************
 * @Author yejf
 * @Description 银行帐户类
 */
public class Account implements Serializable {
    //属性
    private Integer aid;

    private String aaa;

    private String owner; //拥有者

    private String pinCode; //pin码

    private double balance; //帐户余额

    private LocalDate birthday; //生日

    public Account(Integer aid, String aaa, String owner, String pinCode, double balance) {
        this.aid = aid;
        this.aaa = aaa;
        this.owner = owner;
        this.pinCode = pinCode;
        this.balance = balance;
    }

    public Account(Integer aid, String owner, String pinCode, double balance, LocalDate birthday) {
        this.aid = aid;
        this.owner = owner;
        this.pinCode = pinCode;
        this.balance = balance;
        this.birthday = birthday;
    }

    public Account() {
        System.out.println("创建Account对象...");
    }


    public String getAaa() {
        return aaa;
    }

    public void setAaa(String aaa) {
        this.aaa = aaa;
    }

    public Integer getAid() {
        return aid;
    }

    public void setAid(Integer aid) {
        this.aid = aid;
    }

    public String getOwner() {
        return owner;
    }

    public void setOwner(String owner) {
        this.owner = owner;
    }

    public String getPinCode() {
        return pinCode;
    }

    public void setPinCode(String pinCode) {
        this.pinCode = pinCode;
    }

    public double getBalance() {
        return balance;
    }

    public void setBalance(double balance) {
        this.balance = balance;
    }

    public LocalDate getBirthday() {
        return birthday;
    }

    public void setBirthday(LocalDate birthday) {
        this.birthday = birthday;
    }

    @Override
    public String toString() {
        final StringBuffer sb = new StringBuffer("Account{");
        sb.append("aid=").append(aid);
        sb.append(", aaa='").append(aaa).append('\'');
        sb.append(", owner='").append(owner).append('\'');
        sb.append(", pinCode='").append(pinCode).append('\'');
        sb.append(", balance=").append(balance);
        sb.append(", birthday=").append(birthday);
        sb.append('}');
        return sb.toString();
    }
}